package org.dreamwork.jasmine2.util;

import org.dreamwork.jasmine2.web.IWebControl;
import org.dreamwork.util.Collection;

/**
 * Created by IntelliJ IDEA.
 * User: seth
 * Date: 2009-1-4
 * Time: 17:17:45
 */
public class WebControlCollection extends Collection<IWebControl> {
/*
    public void add (String key, IWebControl control) {
        super.add (key, control);
    }
*/

    public IWebControl getControl (int index) {
        return (IWebControl) super.get (index);
    }

    public IWebControl getControl (String name) {
        return (IWebControl) super.get (name);
    }

    public void insertControl (int index, String key, IWebControl control) {
        super.insert (index, key, control);
    }

    public void insertControl (int index, IWebControl control) {
        super.insert (index, control.getId (), control);
    }
}